package fr.upmc.i3s.fuglmeyeranalyser.models.solutions;

import java.util.LinkedList;

import fr.upmc.i3s.fuglmeyeranalyser.patients.Patient;

public class MCOSolutionLinear extends AbstractMCOSolution {

	private double beta;
	private double fm0;
	
	public MCOSolutionLinear(Patient patient) {
		super(patient);
		this.beta = 0;
		this.fm0 = 0;
	}

	@Override
	public double getBeta() {
		return beta;
	}
	
	public void setBeta(double beta) {
		this.beta = beta;
	}
	
	@Override
	public double getFm0() {
		return fm0;
	}
	
	public void setFm0(double fm0) {
		this.fm0 = fm0;
	}

	@Override
	public String toString() {
		return "MCOSolutionLinear [beta=" + beta + ", fm0=" + fm0 + "]";
	}

	@Override
	public String toUserString() {
		return super.toUserString()+"linear : [beta=" + beta + ", fm0=" + fm0 + "]";
	}

	@Override
	public LinkedList<String> getSolutionParameterNames() {
		LinkedList<String> list = new LinkedList<String>();
		list.add("BETA");
		list.add("FM0");
		return list;
	}

	@Override
	public LinkedList<Double> getSolutionParameterValues() {
		LinkedList<Double> values = new LinkedList<Double>(); 
		values.add(beta);
		values.add(fm0);
		return values;
	}
	
}
